#!/bin/bash

# this is an sample shell script
# you will need to develop this to 
# complete the assignment for week 7

echo "Test Case 1: Testing 23/23..."

tc=`java -jar Grades_v2.jar 23 23`

if [ "$tc" = "Component Fail" ]
  then
  echo "Test Passed"
fi

echo "Test Case 2: Testing 50/75..."

tc=`java -jar Grades_v2.jar 50 75`

if [ "$tc" = "Pass" ]
  then
  echo "Test Passed"
fi

echo "Test Case 3: Testing 5/75..."

tc=`java -jar Grades_v2.jar 5 75`

if [ "$tc" = "Component Fail" ]
  then
  echo "Test Passed"
fi

echo "Test Case 4: Testing 62/15..."

tc=`java -jar Grades_v2.jar 62 15`

if [ "$tc" = "Component Fail" ]
  then
  echo "Test Passed"
fi

echo "Test Case 5: Testing 65/55..."

tc=`java -jar Grades_v2.jar 65 55`

if [ "$tc" = "Pass" ]
  
  echo "Test Passed"
fi

echo "Test Case 3: Testing 100/100..."

tc=`java -jar Grades_v2.jar 100 100`

if [ "$tc" = "Pass with distinction" ]
  then
  echo "Test Passed"
else
echo "Test Failed"
fi


